package com.serviceprovider.business.module.taxpayer.services.impl;

//~--- non-JDK imports --------------------------------------------------------

import com.serviceprovider.business.module.sp.transaction.model.TransactionDetail;
import com.serviceprovider.business.module.sp.transaction.services.dao.interfaces.ITransactionDao;
import com.serviceprovider.business.module.taxpayer.dao.ITaxPayerDao;
import com.serviceprovider.business.module.taxpayer.model.TaxPayerInfo;
import com.serviceprovider.business.module.taxpayer.services.ITaxPayerService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

//~--- JDK imports ------------------------------------------------------------

import java.util.List;

/**
 * @author mrduongnv@gmail.com
 *
 */
@Service("taxPayerService")
public class TaxPayerServiceImpl implements ITaxPayerService {
    @Autowired
    ITaxPayerDao    taxPayerDao;
    @Autowired
    ITransactionDao transactionDao;

    @Override
    public TaxPayerInfo getTaxPayerDetails(Integer taxPayerSSNInfo) {

        // TODO Auto-generated method stub
        return taxPayerDao.getTaxPayerDetails(taxPayerSSNInfo);
    }

    @Override
    public List<TransactionDetail> getMatchedTransactionDetails(Integer transactionId, Integer customerSSN) {
        return transactionDao.getMatchedTransactionDetails(transactionId, customerSSN);
    }

    @Override
    public TaxPayerInfo insertTaxPayerInfo(TaxPayerInfo t) {
        return taxPayerDao.saveTaxPayerInfo(t);
    }
}



